<?php
include("../../model/loai_mon_an_model.php");
?>
<?php
require("../_layout/m_header.php");
 ?>
<br />
<br />
<br />
<h3>Thêm Món Ăn</h3>
<form class="form-horizontal" enctype="multipart/form-data" method="post" name="them_mon_an" action="../../controler/mon_an_controller.php" role="form">
<div class="form-group">
    <label for="inputLoai3" class="col-sm-2 control-label">Món Ăn</label>
    <div class="col-sm-3">
      <input type="text" class="form-control" name="ten_mon_an" placeholder="Tên Món Ăn"/>
    </div>
  </div>
  <div class="form-group">
    <label for="inputLoai3" class="col-sm-2 control-label">Loại Món Ăn</label>
    <div class="col-sm-3">
      <select class="form-control" name="ma_loai">
      <option>-----Chọn Loại Món Ăn-----</option>
      <?php
      $list=lay_ds_loai();
      while($row=mysqli_fetch_row($list))
      {
         echo "<option value=".$row[0].">".$row[1]."</option>";
      }
      ?>
      </select>
    </div>
  </div>
  <div class="form-group">
    <label for="inputLoai3" class="col-sm-2 control-label">Giá</label>
    <div class="col-sm-3">
      <input type="text" class="form-control" name="gia" placeholder="Giá Món Ăn"/>
    </div>
  </div>
  <div class="form-group">
    <label for="inputMota3" class="col-sm-2 control-label">Mô tả</label>
    <div class="col-sm-3">
      <textarea name="mo_ta" class="form-control" rows="4"></textarea>
    </div>
  </div>
    <div class="form-group">
    <label for="inputLoai3" class="col-sm-2 control-label">Hình Ảnh</label>
    <div class="col-sm-3">
      <input type="file" class="form-control" name="hinh_anh" id="hinh_anh" />
      <p class="help-block">Example block-level help text here.</p>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" name="them_mon_an" class="btn btn-default">Thêm</button> |
      <button type="submit" name="huy_them" class="btn btn-default">Hủy</button>
    </div>
  </div>
</form>
<?php
require("../_layout/m_footer.php");
 ?>
